@echo off

REM Change to project directory
cd /d %~dp0

REM Compile project
echo Compiling project...
qmake
if %errorlevel% neq 0 (
    echo qmake failed
    pause
    exit /b 1
)

mingw32-make
if %errorlevel% neq 0 (
    echo Compilation failed
    pause
    exit /b 1
)

REM Run program
echo Running program...
cd release
AudioInput.exe
pause